package com.koron.device.service;

import com.koron.bean.base.Response;
import com.koron.bean.system.org.OrgBean;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "eam-service-system", fallbackFactory = FeignFallbackFactory.class)
public interface FeignService {

    @GetMapping("/system/org/getSortByName")
    Integer getSortByName(@RequestParam("name") String name);

    @GetMapping("/system/org/querySingleOrg")
    Response<OrgBean> querySingleOrg(@RequestParam("id") String id);
}
